﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using Renci.Data.Interop.Test.Properties;

namespace Renci.Data.Interop.Test.OpenGIS.Om
{
    /// <summary>
    /// Summary description for Observation
    /// </summary>
    [TestClass]
    public class Observation
    {
        public Observation()
        {
        }

        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        //
        // You can use the following additional attributes as you write your tests:
        //
        // Use ClassInitialize to run code before running the first test in the class
        // [ClassInitialize()]
        // public static void MyClassInitialize(TestContext testContext) { }
        //
        // Use ClassCleanup to run code after all tests in a class have run
        // [ClassCleanup()]
        // public static void MyClassCleanup() { }
        //
        // Use TestInitialize to run code before running each test 
        // [TestInitialize()]
        // public void MyTestInitialize() { }
        //
        // Use TestCleanup to run code after each test has run
        // [TestCleanup()]
        // public void MyTestCleanup() { }
        //
        #endregion

        [TestMethod]
        public void ComplexObservation3Serialization()
        {
            string sourceXml = Resources.complexObservation3;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void DataObservation4Serialization()
        {

            string sourceXml = Resources.dataObservation4;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void Observation1Serialization()
        {

            string sourceXml = Resources.observation1;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void Observation2Serialization()
        {

            string sourceXml = Resources.observation2;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void Observation2bSerialization()
        {

            string sourceXml = Resources.observation2b;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void Observation2cSerialization()
        {
            string sourceXml = Resources.observation2c;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.CategoryObservation>(sourceXml);
        }

        [TestMethod]
        public void Observation2ShapeSerialization()
        {

            string sourceXml = Resources.observation2shape;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void Pointer1Serialization()
        {

            string sourceXml = Resources.pointer1;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void Pointer2Serialization()
        {

            string sourceXml = Resources.pointer2;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void MultiElement1Serialization()
        {

            string sourceXml = Resources.multiElement1;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void MultiElement2Serialization()
        {

            string sourceXml = Resources.multiElement2;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void SpectrumSeries3Serialization()
        {

            string sourceXml = Resources.spectrumSeries3;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void TimeSeries1Serialization()
        {

            string sourceXml = Resources.timeSeries1;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void TimeSeries1rSerialization()
        {

            string sourceXml = Resources.timeSeries1r;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void TimeSeries2Serialization()
        {

            string sourceXml = Resources.timeSeries2;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }

        [TestMethod]
        public void WeatherObservationSerialization()
        {

            string sourceXml = Resources.weatherObservation;
            Common.TestSerialization<Renci.Data.Interop.OpenGIS.Om_10.ObservationType>(sourceXml);
        }
    }
}
